* {
    box-sizing: border-box;
}

body {
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', sans-serif;
    margin: 0;
    color: #fff;
    animation: gradientBG 15s ease infinite;
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.music-container {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 20px 20px 0 rgba(0, 0, 0, 0.2);
    display: flex;
    padding: 20px 30px;
    position: relative;
    margin: 100px 0;
    z-index: 10;
    width: 400px;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.music-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 25px 0 rgba(0, 0, 0, 0.3);
}

.img-container {
    position: relative;
    width: 110px;
}

.img-container::after {
    content: '';
    background-color: #fff;
    border-radius: 50%;
    position: absolute;
    bottom: 100%;
    left: 50%;
    width: 20px;
    height: 20px;
    transform: translate(-50%, 50%);
}

.img-container img {
    border-radius: 50%;
    object-fit: cover;
    height: 110px;
    width: inherit;
    position: absolute;
    bottom: 0;
    left: 0;
    animation: rotate 3s linear infinite;
    animation-play-state: paused;
    transition: all 0.3s ease;
}

.music-container.play .img-container img {
    animation-play-state: running;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.action-btn {
    background-color: transparent;
    border: 0;
    color: #fff;
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
    margin: 0 20px;
    transition: all 0.2s ease;
}

.action-btn:hover {
    color: #23a6d5;
    transform: scale(1.1);
}

.action-btn.action-btn-big {
    font-size: 30px;
}

.action-btn:focus {
    outline: 0;
}

.music-info {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 15px 15px 0 0;
    position: absolute;
    top: 0;
    left: 20px;
    width: calc(100% - 40px);
    padding: 10px 10px 10px 150px;
    opacity: 0;
    transform: translateY(0%);
    transition: transform 0.3s ease-in, opacity 0.3s ease-in;
    z-index: 0;
    backdrop-filter: blur(5px);
}

.music-container.play .music-info {
    opacity: 1;
    transform: translateY(-100%);
}

.music-info h4 {
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.progress-container {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    cursor: pointer;
    margin: 10px 0;
    height: 4px;
    width: 100%;
    transition: all 0.2s ease;
}

.progress-container:hover {
    height: 6px;
}

.progress {
    background: linear-gradient(to right, #23a6d5, #23d5ab);
    border-radius: 5px;
    height: 100%;
    width: 0%;
    transition: width 0.1s linear;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .music-container {
        width: 90%;
        padding: 15px 20px;
    }
    
    .img-container {
        width: 90px;
    }
    
    .img-container img {
        height: 90px;
    }
    
    .action-btn {
        margin: 0 15px;
    }
    
    .action-btn.action-btn-big {
        font-size: 25px;
    }
}